<?php /* Smarty version 2.6.26, created on 2011-07-28 18:52:11
         compiled from grid/client.tpl */ ?>

<div id="status"></div>
<div class="shopp">
    <table>
<?php $_from = $this->_tpl_vars['pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
<?php echo '<tr ><td>'; ?><?php echo $this->_tpl_vars['i']->getClientId(); ?><?php echo '</td><td>'; ?><?php echo $this->_tpl_vars['i']->getName(); ?><?php echo '</td><td>'; ?><?php echo $this->_tpl_vars['i']->getSurname(); ?><?php echo '</td><td>'; ?><?php echo $this->_tpl_vars['i']->getEmail(); ?><?php echo '</td><td>'; ?><?php echo $this->_tpl_vars['i']->getAge(); ?><?php echo '</td><td><input type="checkbox" class="target" id="target:'; ?><?php echo $this->_tpl_vars['i']->getClientId(); ?><?php echo '"/></td></tr>'; ?>

<?php endforeach; endif; unset($_from); ?>
    </table>
</div>
<?php echo '<script type="text/javascript">
$(document).ready(function(){
        $("input.target").click(function(){

           $.post("index.php", {  site: \'mailing\', action: \'updateTarget\', Target: this.id });
       
        });
        var Timer  = \'\';
        var selecter = 0;
        var Main =0;

        bring(selecter);

});
function showstatus(output){
    $("#status").html(output).show();
    }
function bring ( selecter )
{
        $(\'div.shopp:eq(\' + selecter + \')\').stop().animate({
                opacity  : \'1.0\',
                height: \'700px\'

        },300,function(){

                if(selecter < 6)
                {
                        clearTimeout(Timer);
                }
        });

        selecter++;
        var Func = function(){ bring(selecter); };
        Timer = setTimeout(Func, 20);
}

</script>
'; ?>